package cn.xm.basic.query;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {

    private Integer currentPage;
    private Integer pageSize;

    private String keyword;

    public Integer getStart() {
        return (this.currentPage-1)*pageSize;
    }
}
